import 'package:flutter/material.dart';

class DisplayUtil {
  static double screenWidth = 0;
  static double screenHeight = 0;
  static double devicePixelRatio = 1;

  DisplayUtil._();

  static init(BuildContext context) {
    var size = MediaQuery.of(context).size;
    screenWidth = size.width;
    screenHeight = size.height;
    devicePixelRatio = MediaQuery.of(context).devicePixelRatio;
  }
}
